import  {createRouter,createWebHashHistory,RouteRecordRaw,createWebHistory} from 'vue-router'

const routes:RouteRecordRaw[] = [
    {
        path:'/',
        component:()=>import('@/pages/Home/index.vue'),
        redirect:'/fistpage',
        children:[
            {
                path:'/fistpage',
                component:()=>import('@/pages/Home/Fistpage/index.vue')
            },
            {
                path:'/classification',
                component:()=>import('@/pages/Home/Classification/index.vue')
            },
            {
                path:'/speed',
                component:()=>import('@/pages/Home/Speed/index.vue')
            },
            {
                path:'/cooperation',
                component:()=>import('@/pages/Home/Cooperation/index.vue')
            },
            {
                path:'/my',
                component:()=>import('@/pages/Home/My/index.vue')
            },
        ]
    },

]

export default  createRouter({
    routes,
    history:createWebHistory()
})
